<include file="Common@Public:header_user"/>
		<div class="middle">
		<div style="background: url(__PUBLIC__/home/images/bg_bg_03.gif) no-repeat center 0;width:100%;margin:0 auto;padding:108px 0  65px 0;">
			<div class="personal_z">
				<div class="toux"><img src="__PUBLIC__/home/images/huiy_06.png" alt=""></div>
				<form action="__SELF__">
					<div class="per_c_r_form">
						<div class="Validform_checktip" style="text-align: center;"></div>
						<p><span class="_p_span_l">用户名：</span><input type="text" placeholder="请输入用户名" errormsg="请填写1-16位用户名" nullmsg="请填写用户名" datatype="*1-16" value="" name="username" class="_p_span_r"></p>
						<!--<p><span class="_p_span_l">姓名：</span><input name="nickname" type="text" class="_p_span_r"></p>-->
						<p><span class="_p_span_l">部门：</span><input name="department" type="text" class="_p_span_r" style="width: 25%">
							<select class="sel_t" style="padding-left: 5px;width: 20%"" id="department">
								<option value="">请选择</option>
								<option value="南北总公司">南北总公司</option>
								<option value="电商事业部">电商事业部</option>
								<option value="营销事业部">营销事业部</option>
								<option value="品牌事业部">品牌事业部</option>
								<option value="吉林电商公司">吉林电商公司</option>
							</select>
						</p>
						<script type="text/javascript">
							$(document).ready(function(){
								$("#department").change(function(){
									$("input[name='department']").val($(this).val())
								})
							})
						</script>
						<p><span class="_p_span_l">职位：</span><input name="position" type="text" class="_p_span_r" ></p>
						<p><span class="_p_span_l">邮箱：</span><input name="email" type="text" class="_p_span_r"></p>
						<p><span class="_p_span_l">手机号：</span><input name="mobile" type="text" class="_p_span_r"></p>
						<p><span class="_p_span_l">密码：</span><input type="password" placeholder="请输入密码"  errormsg="密码为6-20位" nullmsg="请填写密码" datatype="*6-20" name="password" class="_p_span_r"></p>
						<p><span class="_p_span_l">确认密码：</span><input type="password" placeholder="请再次输入密码" recheck="password" errormsg="您两次输入的密码不一致" nullmsg="请填确认密码" datatype="*" name="repassword" class="_p_span_r"></p>
						<p><span class="_p_span_l">验证码 ：</span><input placeholder="请输入验证码"  errormsg="请填写5位验证码" nullmsg="请填写验证码" datatype="*5-5" name="verify" type="text" class="_p_span_r" style="width:21%"><span><img class="verifyimg reloadverify" alt="点击切换" src="{:U('verify')}" style="cursor:pointer; height:36px; "></span></p>
					</div>
					<input type="submit" value="注册" class="edit" style="margin-left: 29%;"><input type="submit" value="登录" class="reset">
				</form>
			</div>

			<div style="clear: both;"></div>
		</div>
		</div>
<script type="text/javascript">
	$(document)
		.ajaxStart(function(){
			$("button:submit").addClass("am-btn-loading").attr("disabled", true).text('loading...');
		})
		.ajaxStop(function(){
			$("button:submit").removeClass("am-btn-loading").attr("disabled", false).text('注 册');
		});


	$("form").submit(function(){
		var self = $(this);
		$.post(self.attr("action"), self.serialize(), success, "json");
		return false;

		function success(data){
			if(data.status){
				window.location.href = data.url;
			} else {
				self.find(".Validform_checktip").addClass('am-alert').text(data.info);
				setTimeout(function(){
					self.find(".Validform_checktip").removeClass('am-alert').text('');
				},3000);
				//刷新验证码
				$(".reloadverify").click();
			}
		}
	});

	$(function(){
		var verifyimg = $(".verifyimg").attr("src");
        $(".reloadverify").click(function(){
            if( verifyimg.indexOf('?')>0){
                $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
            }else{
                $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
            }
        });
	});
</script>










<div class="footer" style="background:url(__PUBLIC__/home/images/00.jpg) top left repeat-x #ffffff;">
<include file="Common@Public:footer"/>
</div>
</body></html>